import request from '../../utils/request.js'
export function getSubject (params) {
  return request({
    url: '/subjects',
    method: 'GET',
    params
  })
}
export function addSubject (data) {
  return request({
    url: '/subjects',
    method: 'post',
    data
  })
}
export function deleteSubject (data) {
  return request({
    url: '/subjects/' + data,
    method: 'delete'

  })
}

export function changeSubject (data) {
  return request({
    url: '/subjects/' + data.id,
    method: 'put',
    data
  })
}
